package com.hzlj.position.job.controller;


import com.fz.common.base.dto.ResultDTO;
import com.hzlj.position.locate.service.AbnNightActivityService;
import com.hzlj.position.locate.service.AbnNightOutService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 【定位记录-分析】接口
 *
 * @author lifh
 * @date 2023-03-28 21:11:50
 */
@Slf4j
@RestController
@RequestMapping("/position/job")
public class JobController {
    @Resource
    private AbnNightActivityService abnNightActivityService;
    @Resource
    private AbnNightOutService abnNightOutService;

    /**
     * nightActivity
     */
    @GetMapping("/nightActivity")
    public ResultDTO<Boolean> nightActivity() {
        abnNightActivityService.abn();
        return ResultDTO.ok();
    }

    /**
     * nightOut
     */
    @GetMapping("/nightOut")
    public ResultDTO<Boolean> nightOut() {
        abnNightOutService.abn();
        return ResultDTO.ok();
    }

}

